	<script type="text/javascript">
			$(function(){
				// Tabs
				$('#tabs').tabs(); 
				
				$(".show-note").focus(function () {
					$(this).prev('div').fadeIn(1000).fadeOut(10000);
				});

				$('#saveReport').click(function(){
					$('#customForm').attr('action','saveReportSetting/');
					});
				$('#saveAddress').click(function(){
					$('#customForm').attr('action','saveAddressSetting/');
					});
				$('#saveAttachment').click(function(){
					$('#customForm').attr('action','saveAttachmentSetting/');
					});
				
			});
	</script>
	<br><br><br>
	
	<!-- TABS -->
<div id="tabs">
	<ul>
		<li><a href="#tabs-1"><?php	echo lang ('form_label_pdf_settings')?></a></li>
		<li><a href="#tabs-2"><?php	echo lang ('form_label_address')?></a></li>
		<li><a href="#tabs-3"><?php	echo lang ('form_label_attachment_settings')?></a></li>
	</ul>
	<form id="customForm"  method="post" enctype="multipart/form-data"    >
	<!-- TAB 1 -->
	<div id="tabs-1">
		<p>
		
			<div>
			<h2><?php echo lang('form_label_header_footer')?></h2>
			<a href="#" class="btn-larg"> <?php echo lang('see_example')?> </a> 
				<p><?php echo lang('pdf_header_footer_text')?></p>
				<!-- <img src="" alt="Step 1" title="Step 1" /> -->
				<label><?php echo lang('line_1_header')?></label> 
				<input type="text" id="head_1" name="report_form[header1]" value="<?php if(!empty($header1)) echo $header1 ?>"/>
				<label><?php echo lang('line_2_header')?></label> 
				<input type="text" id="head_2" name="report_form[header2]"  value="<?php if(!empty($header2)) echo $header2 ?>"/>
				
				<label><?php echo lang('line_1_footer')?></label> 
				<input type="text" id="footer_1" name="report_form[footer1]"  value="<?php if(!empty($footer1)) echo $footer1 ?>"/>
				<label><?php echo lang('line_2_footer')?></label> 
				<input type="text" id="footer_2" name="report_form[footer2]"  value="<?php if(!empty($footer2)) echo $footer2 ?>"/>
				<br><br>
				<label><?php echo lang('logo')?></label> 
				<input type="file" id="logo" name="logo" size="20"  value="<?php if(!empty($logo)) echo $logo ?>"/>
				<?php if(!empty($logo)){ ?><br><br><img  src="<?php echo base_url()?>images/<?php  echo $logo ?>"  alt="logo"/> <?php } ?>
				<br><br><input type="submit" id="saveReport" class="btn-larg" name="save" value="<?php echo lang('form_label_save')?>"/>
			</div>
		</p>
	</div>
	<!-- END TAB 1 -->
	
	<!-- TAB 2 -->
	<div id="tabs-2">
		<p>
			<div>
			<h2><?php echo lang('form_label_address_text')?></h2>
				<label><?php echo lang('form_label_phone')?> 1</label> 
				<input type="text" id="phone_1" name="address_form[phone_1]"   value="<?php if(!empty($phone_1)) echo $phone_1; ?>"/>
				
				<label><?php echo lang('form_label_phone')?> 2</label> 
				<input type="text" id="phone_2" name="address_form[phone_2]"   value="<?php if(!empty($phone_2)) echo $phone_2; ?>"/>
								
				<label><?php echo lang('form_label_fax')?> 1</label> 
				<input type="text" id="fax_1" name="address_form[fax_1]"    value="<?php if(!empty($fax_1)) echo $fax_1; ?>" />
																
				<label><?php echo lang('form_label_fax')?> 2</label> 
				<input type="text" id="fax_2" name="address_form[fax_2]"    value="<?php if(!empty($fax_2)) echo $fax_2; ?>"/>	
				
				<label><?php echo lang('form_label_country')?> </label> 
				<input type="text" id="country" name="address_form[country]"    value="<?php if(!empty($country)) echo $country; ?>"/>
				
				<label><?php echo lang('form_label_city')?> </label> 
				<input type="text" id="city" name="address_form[city]"    value="<?php if(!empty($city)) echo $city; ?>" />
				
				<label><?php echo lang('form_label_street')?> </label> 
				<input type="text" id="street" name="address_form[street]"    value="<?php if(!empty($street)) echo $street; ?>"/>
				
				<label><?php echo lang('form_label_other_signals')?> 1</label> 
				<input type="text" id="other_1" name="address_form[other_1]"    value="<?php if(!empty($other_1)) echo $other_1; ?>"/>
				
				<label><?php echo lang('form_label_other_signals')?> 2</label> 
				<input type="text" id="other_2" name="address_form[other_2]"    value="<?php if(!empty($other_2)) echo $other_2; ?>"/>
				<input type="submit" id="saveAddress" class="btn-larg" name="save" value="<?php echo lang('form_label_save')?>"/>
			</div>
		</p>
	</div>
	<!-- END TAB 2 -->
	
	<!--  TAB 3 -->
	<div id="tabs-3">
		<p>
		<div>
			<h2><?php echo lang('form_label_attachment_settings')?></h2>
				<label><?php echo lang('form_label_allowed_types')?></label> 
					<div class="ui-widget type_info" style="display:none;  width: 380px;">
					<div style="margin-top: 20px; padding: 0pt 0.7em;" class="ui-state-highlight ui-corner-all">
					<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-info"></span> <strong><?php	echo lang ( 'form_label_allowed_types_note' )?> </strong>
					 </p>
					</div>
					</div>
					
				
				<input class="show-note" type="text" id="types" name="attachment_form[types]"    value="<?php if(!empty($types)) echo $types; ?>"/>
				
				<label><?php echo lang('form_label_max_size')?></label>
					<div class="ui-widget size_info" style="display:none;  width: 380px;">
					<div style="margin-top: 20px; padding: 0pt 0.7em;" class="ui-state-highlight ui-corner-all">
					<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-info"></span> <strong><?php	echo lang ( 'form_label_max_size_note' )?> </strong>
					 </p>
					</div>
					</div>
									
				<input class="show-note" type="text" id="max_size" name="attachment_form[max_size]"  value="<?php if(!empty($max_size)) echo $max_size; ?>"/>
				<input type="submit" id="saveAttachment" class="btn-larg" name="save" value="<?php echo lang('form_label_save')?>"/>
		</div>
			
		</p>
	</div>
	<!-- END TAB 3 -->
	
	
	</form>
	
<!-- END TABS -->
</div>